package Thread.Old;

import Thread.Old.Runable1.RunableImpl;

public class Runable_study {
    public static void main(String[] args) {
        RunableImpl run = new RunableImpl();
        Thread t = new Thread(run);
        //注意把run方法传进t中
        t.start();
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"---->"+i);
        }//设置main线程任务
    }
}
